package com.ruoyi.change.pay.impl;

import com.basic.service.IBaseService;
import com.param.concat.IUpdatePaymentParam;
import com.ruoyi.change.pay.IPayStatus;

/**
 * 未支付
 * @param <T>
 */
public class Unpaid<T> extends AbstractPayStatus<T> implements IPayStatus {

	public Unpaid(IBaseService<T>[] baseService) {
		super(baseService);
	}
	
	@Override
	public int update(IUpdatePaymentParam managerParam) {
		IBaseService<T>[] baseService = this.getBaseService();
		// 修改主表状态
		baseService[0].updatePayStatus(managerParam);
		
		
		baseService[1].updatePayStatus(managerParam);
		
		
		return 1;
	}

}
